// 广告状态枚举
export enum AdStatus {
  RUNNING = 'running',
  PAUSED = 'paused',
  ENDED = 'ended'
}

// 出价方式枚举
export enum BidType {
  CPC = 'cpc',
  CPM = 'cpm',
  CPD = 'cpd',
  OCPM = 'ocpm'
}

// 广告版位枚举
export enum AdPosition {
  AUTO = 'AUTO',
  FEED = 'FEED',
  VIDEO = 'VIDEO',
  MOMENTS = 'MOMENTS',
  MP = 'MP',
  TENCENT = 'TENCENT',
  UNION = 'UNION'
}

// 广告列表项接口
export interface AdListItem {
  id: string
  name: string
  status: AdStatus
  budget: number
  impressions: number
  clicks: number
  ctr: number
  createTime: string
  account_id: string
  ad_account_id: string
  ad_group_id: string
  ad_group_name: string
  corporation_name: string
  startTime?: Date
  endTime?: Date
  account_auth?: {
    account_role_type: string
  }
}

// 广告表单数据接口
export interface AdFormData {
  ad_group_name: string
  description: string
  position: AdPosition[]
  region: string[]
  age: string[]
  bid_type: BidType
  bid_amount: number
  daily_budget: number
  startTime?: Date
  endTime?: Date
  timeRange?: [Date, Date]
}

// 搜索表单接口
export interface SearchForm {
  name: string
  status: AdStatus | ''
}

// 分页参数接口
export interface PaginationParams {
  page: number
  pageSize: number
  total: number
} 